<template>
    <div class="header-wrapper clearfix">
        <div class="head-left">
            <i class="iconfont icon-zhankai"></i>
            <img src="../assets/img/logo.png" alt=""><!--
            --><span class="text">器官移植</span>
        </div>
        <div class="head-right">     
            <el-dropdown trigger="click">
              <span class="el-dropdown-link">
                <i class="iconfont icon-zhanghao"></i>
                xxx医生
                <i class="el-icon-caret-bottom el-icon--right"></i>
            </span>
            <div class="header-dropdown">
            <el-dropdown-menu slot="dropdown">
                <i class="el-icon-caret-bottom el-icon--right"></i>
                <el-dropdown-item>账号设置</el-dropdown-item>
                <el-dropdown-item>退出</el-dropdown-item>
            </el-dropdown-menu>
            </div>
        </el-dropdown>
        </div>
    </div>
</template>

<script>
export default {
    name: 'header',
    data () {
        return {
            
        }
    }
}
</script>

<style lang="scss" rel="stylesheet/scss">
@import '../assets/css/iconfont.css';
    .header-wrapper{
        height: 76px;
        line-height: 76px;
        padding: 0 20px 0 35px;
        font-size: 20px;
        background-color: #06aea6;
        .head-left{
            float: left;
            color:#ffffff;
            font-size: 20px;
            height: 76px;
            line-height: 76px;
            img{
                vertical-align: middle;
                margin: -5px 20px 0 60px;
                height: 30px;
            }
            .text{
                display: inline-block;
                padding-left: 20px;
                border-left: 1px solid #fff;
                height: 30px;
                line-height: 30px;
            }
        }
        .head-right{
            float: right;
            font-size: 14px;
            color:#ffffff;
            span{
                cursor: pointer;
            }
            .el-dropdown{
                color: #ffffff;
                height: 76px;
            }
            .iconfont{
                vertical-align: middle;
                margin-right: 4px;
                font-size: 28px;
            }
            .el-icon--right{
                font-size: 12px;
            }
        }
    }
    .el-dropdown-menu{
        top:50px !important;
        padding: 0;
        .el-dropdown-menu__item{
            font-size: 12px;
            color: #666666;
            text-align: center;
        }
       .el-icon-caret-bottom{
            position: absolute;
            top:-11px;
            left:35px;
            color: #ffffff;
            transform:rotate(180deg);
       }
    }
</style>
